<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>推广员</title>

    <meta name="keywords" content="">
    <meta name="description" content="">

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <link rel="shortcut icon" href="{$Think.const.RESOURCE}img/favicon.ico">
    <link href="{$Think.const.RESOURCE}css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/animate.css" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/style.css?v=4.1.0" rel="stylesheet">
    <style>
        :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
            color: #b6b6b6; opacity:1;
        }

        ::-moz-placeholder { /* Mozilla Firefox 19+ */
            color: #b6b6b6;opacity:1;
        }

        input:-ms-input-placeholder{
            color: #b6b6b6;opacity:1;
        }

        input::-webkit-input-placeholder{
            color: #b6b6b6;opacity:1;
        }
    </style>
</head>

<body class="fixed-sidebar full-height-layout gray-bg">


<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">



            <div class="ibox">
                <div class="ibox-content">

                    <form action="{:U('spreader/search')}" method="post" >
                        <div class="row">

                            <div class="col-md-5 form-group">
                                <div class="input-group m-b ">
                                    <span class="input-group-addon "> 时段&nbsp; </span>
                                    <div class="row form-control text-info">
                                        <input type="date" value="{$con.start_time}" name="start_time" placeholder="从[开始值]" class=" col-md-6"  style="border-style:none">
                                        <input type="date" value="{$con.end_time}" name="end_time" placeholder="到[结束值]"  class=" col-md-6"  style="border-style:none">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 form-group">
                                <div class="input-group m-b ">
                                    <span class="input-group-addon ">会员游戏ID</span>
                                    <input type="text" value="{$con.gameid}" placeholder=" 会员ID" name="gameid" value="{$condition.gameid}" class="form-control text-info">
                                </div>
                            </div>
                            <div class="col-md-3">
                                <button type="submit" class="btn btn btn-primary col-xs-3 col-md-offset-1"> <i class="fa fa-search"></i> 查询 </button>
                                         &nbsp;
                                <a href="{:U('spreader/index')}" class="btn"> <i class="fa fa-refresh col-md-offset-2"></i> 刷新 </a>
                                </div>
                            <hr>
                        </div>
                    </form>
                    <br>


                    <span class="text-muted small pull-right">当前时间: <i class="fa fa-clock-o"></i> <?php echo date('Y-m-d H:i',time());?></span>
                    <span class="text-muted small pull-right"> &nbsp;&nbsp;</span>
                    <span class="text-muted small pull-right">
                        <a hresf="{:U('member/register')}" type="button" class=""><i
                                class="fa fa-plus-square btn-primary"></i>
                        </a>
                    </span>


                    <h2>查询结果</h2>
                    <style>
                        #button4 span{
                            margin-top: 20px;

                        }
                        .clients-list .strong{
                            font-size: 2em;
                        }
                    </style>
                    <div class="clients-list">
                        <ul class="nav nav-tabs">
                            <span class=" small text-muted">总共 :  <span class="text-success strong"> {$count}</span>  条记录</span>
                            <!--<span class="pull-right small text-muted">{$number} 条记录</span>-->
                            <!--<li class="active"><a data-toggle="tab" href="clients.html#tab-1"><i class="fa fa-user"></i> Contacts</a></li>-->
                            <!--<li class=""><a data-toggle="tab" href="clients.html#tab-2"><i class="fa fa-briefcase"></i> Companies</a></li>-->
                        </ul>
                        <div class="tab-content">
                            <div id="tab-1" class="tab-pane active">
                                <div class="full-height-scroll">
                                    <div class="table-responsive">
                                        <table class="table table-bordered table-striped table-hover ">
                                            <thead>
                                            <tr>
                                                <th></th>
                                                <th ><span style="display: inline-block; min-width: 60px;">会员ID</span></th>
                                                <th>会员名称</th>
                                                <th>推广码</th>
                                                <th>邀请码</th>
                                                <th>注册时间</th>
                                            </tr>
                                            </thead>

                                            <tbody>
                                            <volist name="lists" id="vo">
                                                <tr>
                                                        <td onclick="openWin( {$vo.accountid} )"  class="" style="width:12px;">
                                                            <a>
                                                                <i class="fa fa-eye text-danger" style="font-size: 1.3em;"></i> <span style="color: #c5c5c5;">详情</span>
                                                                <!--<i class="fa fa-trophy text-info"></i>-->
                                                            </a>
                                                        </td>

                                                        <td class="contact-type" style="border-left: 1px solid #DDDDDD">{$vo.accountid}</td>
                                                        <td class="contact-type" style="border-left: 1px solid #DDDDDD">{$vo.account}</td>
                                                        <td class="contact-type" style="border-left: 1px solid #DDDDDD">{$vo.mypromocode}</td>
                                                        <td class="contact-type" style="border-left: 1px solid #DDDDDD">{$vo.invitecode}</td>
                                                        <td class="contact-type" style="border-left: 1px solid #DDDDDD">{$vo['regtime']}</td>
                                                </tr>
                                                <script>
                                                    function openWin(accountid) {
                                                        //alert(accountid);
                                                        var url='{:U("spreader/detail")}?id='+ accountid;         //转向网页的地址;
                                                        var name='disablelogin';                            //网页名称，可为空;
                                                        var iWidth=1000;                          //弹出窗口的宽度;
                                                        var iHeight=600;                         //弹出窗口的高度;
                                                        //获得窗口的垂直位置
                                                        var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
                                                        //获得窗口的水平位置
                                                        var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
                                                        window.open(url, name, 'height=' + iHeight + ',,innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=yes,titlebar=no');
                                                    }
                                                </script>
                                            </volist >

                                            </tbody>
                                        </table>

                                    </div>
                                    <div class=" row text-center contact-type page_show">
                                        <style>
                                            .page_show{
                                                width: 100%;
                                                margin-top:30px;
                                            }
                                            .page_show a{
                                                padding: 16px 22px;
                                            }
                                            .page_show a:hover{
                                                background-color: #18a689;
                                                border-radius: 30px;
                                                color: #ffffff;
                                            }
                                            .page_show .current{
                                                padding: 20px;
                                            }
                                        </style>
                                        <!--//{$page_show}-->
                                        <volist name="page_show" id="vo">
                                            <a href="{:U('spreader/index')}?p={$vo}" class="num">{$vo}</a>
                                        </volist>
                                        当前页：<span class=" text-danger">{$p}</span>
                                    </div>
                                </div>
                            </div>

                        </div>



                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- 全局js -->
<script src="{$Think.const.RESOURCE}js/jquery.min.js?v=2.1.4"></script>
<script src="{$Think.const.RESOURCE}js/bootstrap.min.js?v=3.3.6"></script>
<!--<script src="{$Think.const.RESOURCE}js/plugins/metisMenu/jquery.metisMenu.js"></script>-->
<!--<script src="{$Think.const.RESOURCE}js/plugins/slimscroll/jquery.slimscroll.min.js"></script>-->
<!--<script src="{$Think.const.RESOURCE}js/plugins/layer/layer.min.js"></script>-->

<!--&lt;!&ndash; 自定义js &ndash;&gt;-->
<!--<script src="{$Think.const.RESOURCE}js/hplus.js?v=4.1.0"></script>-->
<!--<script type="text/javascript" src="{$Think.const.RESOURCE}js/contabs.js"></script>-->
<script type="text/javascript" src="{$Think.const.RESOURCE}js/content.js"></script>

<!--&lt;!&ndash; 第三方插件 &ndash;&gt;-->
<!--<script src="{$Think.const.RESOURCE}js/plugins/pace/pace.min.js"></script>-->
<!--<script src="{$Think.const.RESOURCE}js/plugins/sweetalert/sweetalert.min.js"></script>-->

</body>

</html>
